package com.yy.base.util;

import java.util.Calendar;

/**
 * 日期处理类
 * @author 周滔
 */
public class DateUtil {
	public static int getYear() {
		return Calendar.getInstance().get(Calendar.YEAR);
	}
	public static int getMonth() {
		return Calendar.getInstance().get(Calendar.MONTH);
	}
	public static int getDay() {
		return Calendar.getInstance().get(Calendar.DATE);
	}
	public static int getHours() {
		return Calendar.getInstance().get(Calendar.HOUR_OF_DAY);
	}
	public static int getMinutes() {
		return Calendar.getInstance().get(Calendar.MINUTE);
	}
	public static int getSeconds() {
		return Calendar.getInstance().get(Calendar.SECOND);
	}
	public static int getDayOfWeek() {
		return Calendar.getInstance().get(Calendar.DAY_OF_WEEK);
	}
	public static int getDayOfYear() {
		return Calendar.getInstance().get(Calendar.DAY_OF_YEAR);
	}
}